package com.evon.yardmanagement.service;

import java.util.List;

import com.evon.yardmanagement.model.Vendor;
import com.evon.yardmanagement.model.Yard;
import com.evon.yardmanagement.model.YardMapping;

/**
 * Class for creating and managing yards.
 * @author vgaurav
 *
 */
public interface IYardManagementService {
	
	/**
	 * Create the yard in data base.
	 * Return true if successfully created else return false.
	 * @param yard
	 * @return
	 */
	public boolean addYard(Yard yard);
	
	/**
	 * Return all yards belonging to the company
	 * @param company
	 * @return
	 */
	public List<Yard> getYardDetails(Vendor company);
	
	/**
	 * Deactivate the yard 
	 * @param yard
	 * @return
	 */
	public boolean deactivateYard(Yard yard);
	
	/**
	 * Return all the yards available.
	 * @return
	 */
	public List<Yard> getAllYards();
	
	public List<Yard> getYardsByOemId(int id); 
	
	public boolean addYardMapping(YardMapping yard);

}
